﻿<Window x:Class="SocialApi.TestApp.Views.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Test SocialApi"
        WindowStartupLocation="CenterScreen"
        SizeToContent="Height"
        ResizeMode="NoResize"
        Width="763">
    <StackPanel HorizontalAlignment="Left"
                VerticalAlignment="Center"
                Margin="10">
        <StackPanel Orientation="Vertical"
                    Margin="5">
            <StackPanel Orientation="Horizontal"
                        Margin="0,0,0,5">
                <TextBlock Text="Выберите соц.сеть:"
                           Width="120" />
                <ComboBox ItemsSource="{Binding Socials}"
                          SelectedItem="{Binding CurrentSocial, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                          DisplayMemberPath="SocialType"
                          IsEditable="False"
                          Margin="10,0,0,0"
                          Width="139" />
            </StackPanel>
        </StackPanel>
        <StackPanel Orientation="Vertical"
                    Margin="5">
            <StackPanel Orientation="Horizontal"
                        Margin="0,0,0,5">
                <TextBlock Text="Описание:"
                           Width="120" />
                <TextBlock Text="{Binding CurrentSocial.Description}"
                           Margin="10,0,0,0"
                           Width="600"
                           TextWrapping="Wrap" />
            </StackPanel>
        </StackPanel>
        <StackPanel Orientation="Vertical"
                    Margin="5">
            <StackPanel Orientation="Horizontal"
                        Margin="0,0,0,5">
                <TextBlock Text="Сайт:"
                           Width="120" />
                <TextBlock Text="{Binding CurrentSocial.NavigateUriName}"
                           Margin="10,0,0,0">
                    <Hyperlink NavigateUri="{Binding CurrentSocial.NavigateUri}" />
                </TextBlock>
            </StackPanel>
        </StackPanel>
        <Button Content="Опробовать"
                Command="{Binding UseSocialCommand}"
                Width="160"
                HorizontalAlignment="Left" />
    </StackPanel>
</Window>